package com.htht.smartschool.common.service;

import com.htht.smartschool.common.dao.BaseDao;
import com.htht.smartschool.common.model.Entity;


public class BaseService {
	BaseDao dao;
	public BaseDao getDao() {
		if(dao==null){
			dao=new BaseDao();
		}
		return dao;
	}

	public void setDao(BaseDao dao) {
		
		this.dao = dao;
	}
	public Entity create(Entity ent){
		return getDao().create(ent);
	}
	public Entity update(Entity ent){
		return getDao().update(ent);
	}
	public boolean deletee(Entity ent){
		return getDao().delete(ent);
	}
	
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


	private String msg="";
}
